import Layout from '@/layout';
// // 由于懒加载页面太多的话会造成webpack热更新太慢，所以开发环境不使用懒加载，只有生产环境使用懒加载
const _import = require('@/utils/util.import');
const meta = { auth: true, menuId: '/customerGroup' };
export default {
  path: '/customerGroup',
  meta: {
    ...meta,
    icon: 'setting',
    title: '客群列表',
  },
  component: Layout,
  children: ((basePath) => [
    {
      path: `${basePath}/customerGrouplist`, //路由地址
      component: _import('customerGroup/customerGrouplist'), //页面路径
      name:'customerGrouplist',
      meta: {
        ...meta,
        title: '客群列表',
      },
    },
    {
      path: `${basePath}/customerGroupdetails`, //路由地址
      name:'customerGroupdetails',
      component: _import('customerGroup/customerGroupdetails'), //页面路径
      meta: {
        ...meta,
        title: '客群详情',
      },
    }
    
  ])('/customerGroup'),
};
